using System.Collections.Generic;
using System.Runtime.InteropServices;
using System.Collections;

namespace SpellCore
{
    [Guid("ABE42BD2-7148-4593-852A-20E014BF1C4A")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    [ComVisible(true)]
    public interface ISpellChecker
    {
        bool HasEngines
        {
            get;
        }
        void AddGoodWord(string word);
        void AddBadWord(string word);
        CheckingResult GetWordStatus(string word);
        // enumerable of ISimilarityCheckResult for COM
        IEnumerator InteropGetSuggestions(string word);
        IEnumerable<SimilarityCheckResult> GetSuggestions(string word);
        void CreateDefaultEngine();
    }
}
